import { defineStore } from 'pinia'

export const useLayoutStore = defineStore('layout-information', {
  state: () => ({
    leftWidth: '30%' // 左侧菜单栏是否展开
  }),

  actions: {
    editstore(data: any) {
      //根据传入的data更新store中的数据
      Object.assign(this, data)
    }
  },

  persist: true // 持久化
})
